﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsePaging.aspx.cs" Inherits="WebNormal.UsePaging" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="idLayout">
        <table class="j_table3" width="100%">
            <tr>
                <td>
                    <span class="j_left">账户详细信息列表</span><span class="j_left"><span class="j_left"><a href="AddAccouts.aspx" class="j_left">添加账户详细信息</a></span>
                </td>
             </tr>
        </table>
        <div class="hrdiv"></div>
        <table id="list" class="j_table" width="100%">
             <thead>
                <tr>
                    <th scope="col">
                        银行类型
                    </th>
                    <th scope="col">
                        账号
                    </th>
                    <th scope="col">
                        显示顺序
                    </th>
                    <th scope="col">
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rptAccount" runat="server" OnItemCommand="rptAccount_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("BankName")%>
                            </td>
                            <td>
                                <%#Eval("AccountAb")%>
                            </td>
                            <td>
                                <%#Eval("Sort")%>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnEdit" runat="server" CommandArgument='<%# Eval("AccountID") %>'
                                    CommandName="Edit" Text="编辑"></asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="lbtnDelete" runat="server" CommandArgument='<%# Eval("AccountID") %>'
                                    CommandName="Delete" Text="删除" OnClientClick="javascript:return confirm('确认删除吗？')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <!--pages-->
       <webdiyer:AspNetPager ID="apg1" runat="server" CssClass="anpager" 
              CurrentPageButtonClass="cpb" onpagechanged="apg1_PageChanged" 
            PageSize="15" >
        </webdiyer:AspNetPager> 
        <input type="hidden" id="curIndex" value="<%= curIndex%>" />
        <!--pages-->
    </div>
    </form>
</body>
</html>
